package com.imooc.security.feign;

import com.imooc.security.data.pojo.dto.UserResponseDTO;
import com.imooc.security.data.pojo.response.CommonResponseDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author Created By Houce
 * @date 2020-07-27 14:40
 */
@FeignClient(value = "security-data-provider")
public interface DataFeign {
    /**
     * 根据用户uid获取用户信息
     * @param uid 用户uid账号
     * @return 用户信息
     */
    @GetMapping("/user/queryUserByUid")
    CommonResponseDto<UserResponseDTO> queryUserByUid(@RequestParam("uid") final String uid);

}
